package cn.itcast.domain.system;

public class Dept {

	private String id       ; //id
	private String deptName     ; //部门名称
	//private String parentId     ; //父部门
	private Integer state        ; //状态 0：不可用，1：可用
	private String companyId    ; //企业id
	private String companyName  ; //企业名称

	/**
	 * 配置子部门到父部门的一对一关系
	 * @return
	 */
	private Dept parent;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}


	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}


	public Dept getParent() {
		return parent;
	}

	public void setParent(Dept parent) {
		this.parent = parent;
	}

	@Override
	public String toString() {
		return "Dept{" +
				"id='" + id + '\'' +
				", deptName='" + deptName + '\'' +
				", state=" + state +
				", companyId='" + companyId + '\'' +
				", companyName='" + companyName + '\'' +
				", parent=" + parent +
				'}';
	}
}
